# This is a Makefile for dtprocess
# 09-Apr-97	JWP	(c) 1997 Molecular Structure Corporation
#
#
# Copyright (C) 2014 Rigaku Americas Corporation
#                    9009 New Trails Drive
#                    The Woodlands, TX, USA  77381
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#    * Redistributions of source code must retain the above copyright
#      notice(s), this list of conditions and the following disclaimer.
#    * Redistributions in binary form must reproduce the above copyright
#      notice(s), this list of conditions and the following disclaimer in the
#      documentation and/or other materials provided with the distribution.
#    * Neither the name of the Rigaku Americas Corporation nor the
#      names of its contributors may be used to endorse or promote products
#      derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL RIGAKU AMERICAS CORPORATION BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA OR PROFITS; OR BUSINESS INTERUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
#
# 

#
# Generated by the ICS builderXcessory (BX).
#
#
# Builder Xcessory Builder Xcessory 3.5.1 .
#
#

CC              = g++
INSTALLDIR      = ../../bin_irix
C++FLAGS        = -g -DFUNCPROTO -DXTFUNCPROTO -L../DTTREK -L../DTDISPLAY -I../DTTREK -I../DTDISPLAY  -I/usr/local/lib/g++-include 
LIBS=-ldtrek$(OSTYPE) -ldtrekX$(OSTYPE)  -lXm -lXt -lX11 -lm -lPW
OFILES = main-cc.o UIComponent.o bxutils-cc.o callbacks-cc.o CUIheaderEdit.o CUIfileFilter.o CUIscrolledlist.o CUIviewheader.o CUInumberField.o CUItextnumArrow.o CUIom9.o MainWindow.o 
FILES = main-cc.cc UIComponent.cc bxutils-cc.cc callbacks-cc.cc CUIheaderEdit.cc CUIfileFilter.cc CUIscrolledlist.cc CUIviewheader.cc CUInumberField.cc CUItextnumArrow.cc CUIom9.cc MainWindow.cc 

ALL             = dtprocess
RM  = rm -f

# User-specified options:




all: dtprocess

dtprocess: $(OFILES)
	$(CC) $(C++FLAGS) $(OFILES) $(LIBS) -o $@


main-cc.o: main-cc.cc MainWindow.h CUIheaderEdit.h CUIfileFilter.h CUIom9.h \
		CUIviewheader.h CUInumberField.h CUItextnumArrow.h
	$(CC) $(C++FLAGS) -c main-cc.cc

UIComponent.o: UIComponent.cc
	$(CC) $(C++FLAGS) -c UIComponent.cc

bxutils-cc.o: bxutils-cc.cc
	$(CC) $(C++FLAGS) -c bxutils-cc.cc

callbacks-cc.o: callbacks-cc.cc
	$(CC) $(C++FLAGS) -c callbacks-cc.cc

CUIheaderEdit.o: CUIheaderEdit.cc
	$(CC) $(C++FLAGS) -c CUIheaderEdit.cc

CUIfileFilter.o: CUIfileFilter.cc
	$(CC) $(C++FLAGS) -c CUIfileFilter.cc

CUIscrolledlist.o: CUIscrolledlist.cc
	$(CC) $(C++FLAGS) -c CUIscrolledlist.cc

CUIviewheader.o: CUIviewheader.cc
	$(CC) $(C++FLAGS) -c CUIviewheader.cc

CUInumberField.o: CUInumberField.cc
	$(CC) $(C++FLAGS) -c CUInumberField.cc

CUItextnumArrow.o: CUItextnumArrow.cc
	$(CC) $(C++FLAGS) -c CUItextnumArrow.cc

CUIom9.o: CUIom9.cc
	$(CC) $(C++FLAGS) -c CUIom9.cc

MainWindow.o: MainWindow.cc
	$(CC) $(C++FLAGS) -c MainWindow.cc

ocodecenter:: 
	#load $(C++FLAGS) $(OFILES) $(LIBS)

codecenter:: 
	#load $(C++FLAGS) $(CFILES) $(LIBS)

clean::
	$(RM) $(OFILES) dtprocess

cleanbin:
	$(RM) MainWindow.o dtprocess

install:	$(ALL)
		if [ ! -d $(INSTALLDIR) ];then mkdir $(INSTALLDIR);fi;
		for X in $(ALL); do \
			cp $$X $(INSTALLDIR); done
